package com.mes.cloud.dao;


import com.mes.cloud.api.dto.request.product.ProductCompetitiveBrandEnableRequest;
import com.mes.cloud.api.dto.request.product.ProductCompetitiveBrandPageRequest;
import com.mes.cloud.entity.ProductCompetitiveBrand;
import com.mes.cloud.entity.vo.product.ProductCompetitiveBrandPageVo;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.ids.SelectByIdsMapper;

import java.util.List;

/**
 * 对标竞品关联
 *
 * @author xy
 * @version 2019-08-21 16:12:50
 * @email yuan.xue3@pactera.com
 */
public interface ProductCompetitiveBrandDao extends SelectByIdsMapper<ProductCompetitiveBrand>, Mapper<ProductCompetitiveBrand> {

    /**
     * <批量插入>
     *
     * @param productCompetitiveBrands
     * @return int
     * @author xy
     * @date 2019/8/22 17:19
     */
    int batchInsert(List<ProductCompetitiveBrand> productCompetitiveBrands);

    /**
     * <分页查询>
     *
     * @param selectParam
     * @return List<ProductCompetitiveBrandPageVo>
     * @author xy
     * @date 2019/8/22 17:19
     */
    List<ProductCompetitiveBrandPageVo> pageList(ProductCompetitiveBrandPageRequest selectParam);

    /**
     * <批量更新>
     *
     * @param productCompetitiveBrandEnableRequest
     * @return int
     * @author xy
     * @date 2019/8/22 18:18
     */
    int batchUpdateEnable(ProductCompetitiveBrandEnableRequest productCompetitiveBrandEnableRequest);
}
